package com.boyu.common.showmodel;

import com.boyu.common.model.Menu;

import java.util.ArrayList;
import java.util.List;

/**
 * 菜单
 * Created by Administrator on 2016/8/30.
 */
public class ShowMenu {
	private Menu menu;
	private Menu parentMenu;
	private List<ShowMenu> subShowMenuList = new ArrayList<>();

	public ShowMenu(Menu menu) {
		this.menu = menu;
	}

	public void addSubShowMenu(ShowMenu menu) {
		subShowMenuList.add(menu);
	}

	public Menu getMenu() {
		return menu;
	}

	public List<ShowMenu> getSubShowMenuList() {
		return subShowMenuList;
	}

	public Menu getParentMenu() {
		return parentMenu;
	}

	public void setParentMenu(Menu parentMenu) {
		this.parentMenu = parentMenu;
	}
}
